//
//  VLView.m
//  01-UIViewHomeWork
//
//  Created by 岁变 on 16/7/14.
//  Copyright © 2016年 QC.L. All rights reserved.
//

#import "VLView.h"

@implementation VLView

- (instancetype)initWithFrame:(CGRect)frame {
    
    self = [super initWithFrame:frame];
    if (self) {
        [self config];
    }
    return self;
}

- (void)config {
    
    self.viewOne = [[UIView alloc] initWithFrame:CGRectMake(0, 10, (self.frame.size.width - 50) / 2, 2)];
    self.viewOne.backgroundColor = [UIColor colorWithRed:0.95 green:0.91 blue:0.87 alpha:1.00];
    [self addSubview:_viewOne];
    
    self.viewTwo = [[UIView alloc] initWithFrame:CGRectMake(self.frame.size.width / 2 + 25, 10, (self.frame.size.width - 50) / 2, 2)];
    self.viewTwo.backgroundColor = [UIColor colorWithRed:0.95 green:0.91 blue:0.87 alpha:1.00];
    [self addSubview:_viewTwo];
    
    self.label = [[UILabel alloc] initWithFrame:CGRectMake(self.frame.size.width / 2 - 25, 0, 50, self.frame.size.height)];
    self.label.text = @"or";
    self.label.textColor = [UIColor colorWithRed:0.95 green:0.91 blue:0.87 alpha:1.00];
    self.label.font = [UIFont systemFontOfSize:20];
    self.label.textAlignment = NSTextAlignmentCenter;
    self.label.font = [UIFont boldSystemFontOfSize:20];
    [self addSubview:_label];
    
}
@end
